package com.examination.to.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * auther:FC
 * date:2021/5/10
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Exam {

    @ApiModelProperty(value = "主键 考试id", example = "1")
    private Integer id;

    @ApiModelProperty(value = "考试名称", example = "小学一年级考试")
    private String examname;

    @ApiModelProperty(value = "考试描述", example = "这是一场考试的描述")
    private String examdesc;

    @ApiModelProperty(value = "考试时间", example = "125")
    private Integer duration;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "考试开始时间", example = "2020-11-01")
    private Date starttime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "考试结束时间", example = "2020-12-01")
    private Date endtime;

    @ApiModelProperty(value = "考试总分", example = "100")
    private Integer totalscore;

    @ApiModelProperty(value = "考试及格线", example = "60")
    private Integer passscore;

    @ApiModelProperty(value = "发布状态 1已发布 2未发布", example = "1")
    private Integer status;

}
